package com.example.componenttestdemo.base;

import android.app.Application;
import android.content.Context;
import android.graphics.Color;

import com.blankj.utilcode.util.LogUtils;
import com.example.componenttestdemo.R;
import com.sdtv.basemodule.config.BaseConfig;
import com.sdtv.basemodule.rx.errorhandler.ResponseErrorListener;

/**
 * 说明：
 * 创建者：Michael
 * 添加时间：2019-10-29
 * 功能描述：这是类描述
 * 修改时间:2019-10-29
 */
public class ShellConfig extends BaseConfig {


    public ShellConfig(Application application) {
        super(application);
    }

    @Override
    public ResponseErrorListener getResponseErrorListener() {
        return (context, throwable) -> {
            LogUtils.e("responseError:" + throwable.getMessage());
            throwable.printStackTrace();
        };
    }

    @Override
    public int getStatusColor() {
        return R.color.colorPrimary;
    }

    @Override
    public int getToolBarLayoutId() {
        return 0;
    }
}
